<template>
	<view class="wrapper">
		<view class="form-list">
			<text v-if="isIcon" class="icon">*</text>
			<text class="title">{{title}}:</text>
		</view>
		<view class="bottom">
			<slot>
				
			</slot>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: ''
			},
			isIcon: {
				type: Boolean,
				default: true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wrapper {
		padding: 0 15rpx;

		.form-list {
			margin-bottom: 10rpx;

			.icon {
				color: #E60012;
			}

			.title {
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;
				line-height: 40rpx;
			}
		}

		.bottom {
			width: 100%;
			height: 80rpx;
			background-color: #F8F9FE;
			margin-bottom: 24rpx;

			input {
				height: 100%;
				margin-left: 16rpx;
			}
		}
	}
	
	.txt {
		font-size: 28rpx;
		color: #999999;
	}
</style>
